/*
 * Copyright 2020-2025 the original author or authors.
 * You cannot use this file unless authorized by the author.
 */
package org.ipig.model.store;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.ToString;
import org.ipig.model.CollectionConf;
import org.ipig.model.ConnectorConf;
import lombok.Data;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * 输出器conf
 *
 * @author <a href="mailto:comchnts@163.com">chinats</a>
 * @version $$Id: StoreOutputterConf.java 3 2020-01-21 09:36:33Z ts <comchnts@163.com> $$
 * @since 1.0
 */
@Data
@ToString
public class StoreOutputterConf implements Serializable {
    //连接器Conf
    @JSONField(serialize=false,deserialize = false)
    private ConnectorConf connectorConf;
    private String outputConnCode;
    //    private String connectorCode;
    //集合Conf
    @JSONField(serialize=false,deserialize = false)
    private CollectionConf collectionConf;
    private String collectionCode;
    //集合名称
//    private String collName = "";
    //集合分片字段，多个按照顺序以逗号隔开
//    private String collShardKeys = "";
    //扩展字段map,在增加，修改，删除三操作中此字段数据不变，固定值。
    private Map<String, String> extendFieldMap = new HashMap<String, String>();
    //调试标识 默认关闭
    private Boolean debugEnable = Boolean.valueOf(false);
    // 其它属性
    private Map<String, Object> props = new HashMap<String, Object>();
}